Use onClick event handler: Do not click on this picture!
Use onMouseOver/onMouseOut event handlers: Mouse over to change this picture:
Use onClick event handler: Click on this picture to change it:
Hide/Show an Elementuse document.myTable.style.display='none';
document.myTable.style.display='none';
Hide table Show table
onClick="document.bgColor = prompt('What color?','yellow')"
This is the text you entered in the prompt: Click here to change the text
Using element.innerText: Initial value Click here to change the inner text